package com.cluster.platform.mapper;

import com.cluster.platform.model.CmsContentDetails;
import com.cluster.platform.model.CmsContentDetailsExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

@Mapper
public interface CmsContentDetailsMapper {
    long countByExample(CmsContentDetailsExample example);

    int deleteByExample(CmsContentDetailsExample example);

    int deleteByPrimaryKey(String id);

    int insert(CmsContentDetails record);

    int insertSelective(CmsContentDetails record);

    List<CmsContentDetails> selectByExampleWithBLOBs(CmsContentDetailsExample example);

    List<CmsContentDetails> selectByExample(CmsContentDetailsExample example);

    CmsContentDetails selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") CmsContentDetails record, @Param("example") CmsContentDetailsExample example);

    int updateByExampleWithBLOBs(@Param("record") CmsContentDetails record, @Param("example") CmsContentDetailsExample example);

    int updateByExample(@Param("record") CmsContentDetails record, @Param("example") CmsContentDetailsExample example);

    int updateByPrimaryKeySelective(CmsContentDetails record);

    int updateByPrimaryKeyWithBLOBs(CmsContentDetails record);

    int updateByPrimaryKey(CmsContentDetails record);

    CmsContentDetails searchContentDetail(@RequestParam("contentId") String contentId);

    // 删除文章详情
    int deleteContentDetail(@RequestParam("id")String id);
}